package com.three.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.MultipartFile;

import com.three.entity.User;

import net.sf.json.JSONObject;


public interface UserService {

	public JSONObject login(User user);
	
	public User findUserWithClassmates(String phone);
	
	public List<User> findUsersByCid(Integer cid);
	
	public List<User> findStudentsByCid(Integer cid);
	
	public String register(User user);
	
	public int changeUserName(String name,String id);
	
	public int changeCampus(String campus,String id);
	
	public int changeSno(String sno,String id);
	
	public String changePwd(String oPwd,String uPwd, Integer uid);
	
	public int changePhone(String phone,String id);
	
	public int checkPhone(String phone);
	
	public String uploadIcon(HttpServletRequest request,MultipartFile file,Integer uid);

}
